<template>
  <!-- 未登录 -->
  <div class="my-logout my-title">
    <img src="~@/assets/images/bg.png" alt="" />
    <div class="my-info">
      <div class="my-avatar">
        <img src="~@/assets/images/avatar.png" alt="" />
      </div>
      <div class="my-name">游客</div>
      <div class="login" @click="$router.push('/login')">去登录</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'MyLogout'
}
</script>

<style scoped lang="less">
// 公共部分
.my-title {
  position: relative;
  img {
    width: 100%;
  }
  // 个人信息
  .my-info {
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 318.75px;
    transform: translateX(-50%);
    box-shadow: 0 0 10px 3px #ddd;
    margin: 50px auto 1px;
    padding: 0 20px;
    text-align: center;
    font-size: 13px;
    background: #fff;
    z-index: 1;
    // 小图像
    .my-avatar {
      transform: translateY(-50%);
      border-radius: 50%;
      width: 70px;
      height: 70px;
      border: 5px solid #f5f5f5;
      display: inline-block;
      box-shadow: 0 2px 2px #bdbdbd;
      img {
        border-radius: 50%;
      }
    }
    // 名字
    .my-name {
      font-size: 13px;
      margin-top: -17px;
    }
  }
}
// 未登录
.my-logout {
  height: 300px;
  .my-info {
    height: 165px;
    .login {
      margin-top: 20px;
      display: inline-block;
      width: 69px;
      height: 30px;
      line-height: 30px;
      font-size: 13px;
      border-radius: 5px;
      text-align: center;
      color: #fff;
      background-color: #21b97a;
    }
  }
}
</style>
